// const fs = require('fs');
// const path = require('path');

// const dir = path.resolve(__dirname, 'src/pages/prize/img/animate');
// const fileList = fs.readdirSync(dir);
// for (let i = 0; i < fileList.length; i++) {
//     const file = fileList[i];
//     fs.renameSync(path.resolve(dir,file), path.resolve(dir, `${i+1}.jpg`));
// }

var list = [];
var len = 75;
var step = (100 / (len - 1)).toFixed(2);

for (let i = 0; i < len; i++) {
    list.push(`${(0 + step * i).toFixed(2)}%{
            background: url('./img/animate/${i + 1}.jpg') 0 0/100% auto no-repeat;
        }`);
}

var out = list.join('\n');
